package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExibitionMapper;
import com.ruoyi.system.domain.Exibition;
import com.ruoyi.system.service.IExibitionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 展览展示Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-18
 */
@Service
public class ExibitionServiceImpl implements IExibitionService 
{
    @Autowired
    private ExibitionMapper exibitionMapper;

    /**
     * 查询展览展示
     * 
     * @param exId 展览展示主键
     * @return 展览展示
     */
    @Override
    public Exibition selectExibitionByExId(Long exId)
    {
        return exibitionMapper.selectExibitionByExId(exId);
    }

    /**
     * 查询展览展示列表
     * 
     * @param exibition 展览展示
     * @return 展览展示
     */
    @Override
    public List<Exibition> selectExibitionList(Exibition exibition)
    {
        return exibitionMapper.selectExibitionList(exibition);
    }

    /**
     * 新增展览展示
     * 
     * @param exibition 展览展示
     * @return 结果
     */
    @Override
    public int insertExibition(Exibition exibition)
    {
        return exibitionMapper.insertExibition(exibition);
    }

    /**
     * 修改展览展示
     * 
     * @param exibition 展览展示
     * @return 结果
     */
    @Override
    public int updateExibition(Exibition exibition)
    {
        return exibitionMapper.updateExibition(exibition);
    }

    /**
     * 批量删除展览展示
     * 
     * @param exIds 需要删除的展览展示主键
     * @return 结果
     */
    @Override
    public int deleteExibitionByExIds(String exIds)
    {
        return exibitionMapper.deleteExibitionByExIds(Convert.toStrArray(exIds));
    }

    /**
     * 删除展览展示信息
     * 
     * @param exId 展览展示主键
     * @return 结果
     */
    @Override
    public int deleteExibitionByExId(Long exId)
    {
        return exibitionMapper.deleteExibitionByExId(exId);
    }
}
